package gphoto.bo.repertoire;

import java.io.File;


public class EmplacementATrier extends Emplacement {

	private boolean mIsPrincipal;
	
	public EmplacementATrier(File pFile) {
		super(pFile);
		mIsPrincipal = false;
	}

	public EmplacementATrier(String path) {
		super(path);
		mIsPrincipal = false;
	}
	
	public EmplacementATrier(File pFile, boolean pIsPrincipal) {
		super(pFile);
		mIsPrincipal = pIsPrincipal;
	}

	public EmplacementATrier(String pChemin, boolean pIsPrincipal) {
		super(new File(pChemin));
		mIsPrincipal = pIsPrincipal;
	}
	
	public boolean isPrincipal() {
		return mIsPrincipal;
	}

	public void setPrincipal(boolean pIsPrincipal) {
		mIsPrincipal = pIsPrincipal;
	}

	public String toString() {
		return "[EMPLACEMENT : id='"+getId()+"' ; nom='"+getNom()+"' ; path='"+getPath()+"' ; principal='"+isPrincipal()+"']";
	}
}
